<?php

namespace app\model\article;

use app\BaseModel;
use think\model\relation\HasMany;

/**
 * 文章类型
 */
class ArticleTypeModel extends BaseModel
{
    protected $name = 'article_type';

    /**
     * 文章
     * @return HasMany
     */
    public function Article(): HasMany
    {
        return $this->hasMany(ArticleModel::class,'type_id');
    }
}